package org.msn.client;

import org.junit.Test;
import org.msn.client.support.DefaultClientBoot;
import org.msn.util.YamlUtil;

import java.io.FileNotFoundException;
import java.util.Map;

public class Boot {
    private Map<String, Object> map = YamlUtil.read("client");

    public Boot() throws FileNotFoundException {
    }

    @Test
    public void boot1() throws InterruptedException {
        ClientBoot boot = new DefaultClientBoot();

        boot.run((String) map.get("ip"), (int) map.get("port"));
    }

    @Test
    public void boot2() throws InterruptedException {
        ClientBoot boot = new DefaultClientBoot();

        boot.run((String) map.get("ip"), (int) map.get("port"));
    }
}
